<!--
See http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination
-->

<?php if ($this->pageCount): ?>
	<?php echo $this->totalItemCount ?> Resultate
	<span class="vspacer"></span>
	<?php if ($this->pageCount > 1): ?>
		<ul>
			<!-- Previous link -->
			<?php if (isset($this->previous)): ?>
				<li><a href="<?php echo $this->sherpaUrl()->pagination($this->previous); ?>"><img src="sherpa/img/paging-previous.gif" alt="Previous page" width="16" height="15" /></a></li>
			<?php else: ?>
				<li><img src="sherpa/img/clear.gif" alt="" width="16" height="15" /></li>
			<?php endif; ?>

			<!-- Numbered page links -->
			<?php $delim = ''; ?>
			<?php foreach ($this->pagesInRange as $page): ?>
			  <?php if ($page != $this->current): ?>
				<li><?php echo $delim ?></li>
			    <li><a href="<?php echo $this->sherpaUrl()->pagination($page); ?>"><?php echo $page; ?></a></li>
			  <?php else: ?>
				<li><?php echo $delim ?></li>
			    <li><?php echo $page; ?></li>
			  <?php endif; ?>
			  <?php $delim = '|' ?>
			<?php endforeach; ?>

			<!-- Next link -->
			<?php if (isset($this->next)): ?>
				<li><a href="<?php echo $this->sherpaUrl()->pagination($this->next); ?>"><img src="sherpa/img/paging-next.gif" alt="Next page" width="16" height="15" /></a></li>
			<?php else: ?>
				<li><img src="sherpa/img/clear.gif" alt="" width="16" height="15" /></li>
			<?php endif; ?>
		</ul>
	<?php endif; ?>
<?php endif; ?>